package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.queryObject.DestinationQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IDestinationService {
    void save(Destination destination);
    void update(Destination destination);
    void delete(String id);
    Destination get(String id);
    List<Destination> list();

    Page<Destination> query(DestinationQueryObject qo);

    List<Destination> getToasts(String parentId);

    /**
     * 通过区域id找对应目的地
     * @param regionId
     * @return
     */
    List<Destination> queryDestByRegionIdForApi(String regionId);

    /**
     * 编辑目的地简介
     * @param id
     * @param info
     */
    void updateInfo(String id, String info);
}
